package com.jiong.controller;

import com.jiong.common.util.R;
import com.jiong.service.IPlaylistsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jiong
 * @since 2025-01-13
 */
@RestController
@RequestMapping("/playlists")
public class PlaylistsController {
    @Autowired
    private IPlaylistsService playlistsService;

    @GetMapping("/list")
    public R list(){
        return R.ok().data("list",playlistsService.list());
    }



}
